package com.ruoyi.cyinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cyinfo.mapper.InfoCarryMoneyMapper;
import com.ruoyi.cyinfo.domain.InfoCarryMoney;
import com.ruoyi.cyinfo.service.IInfoCarryMoneyService;

/**
 * 提现Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-10
 */
@Service
public class InfoCarryMoneyServiceImpl implements IInfoCarryMoneyService 
{
    @Autowired
    private InfoCarryMoneyMapper infoCarryMoneyMapper;

    /**
     * 查询提现
     * 
     * @param id 提现主键
     * @return 提现
     */
    @Override
    public InfoCarryMoney selectInfoCarryMoneyById(Long id)
    {
        return infoCarryMoneyMapper.selectInfoCarryMoneyById(id);
    }

    /**
     * 查询提现列表
     * 
     * @param infoCarryMoney 提现
     * @return 提现
     */
    @Override
    public List<InfoCarryMoney> selectInfoCarryMoneyList(InfoCarryMoney infoCarryMoney)
    {
        return infoCarryMoneyMapper.selectInfoCarryMoneyList(infoCarryMoney);
    }

    /**
     * 新增提现
     * 
     * @param infoCarryMoney 提现
     * @return 结果
     */
    @Override
    public int insertInfoCarryMoney(InfoCarryMoney infoCarryMoney)
    {
        return infoCarryMoneyMapper.insertInfoCarryMoney(infoCarryMoney);
    }

    /**
     * 修改提现
     * 
     * @param infoCarryMoney 提现
     * @return 结果
     */
    @Override
    public int updateInfoCarryMoney(InfoCarryMoney infoCarryMoney)
    {
        return infoCarryMoneyMapper.updateInfoCarryMoney(infoCarryMoney);
    }

    /**
     * 批量删除提现
     * 
     * @param ids 需要删除的提现主键
     * @return 结果
     */
    @Override
    public int deleteInfoCarryMoneyByIds(Long[] ids)
    {
        return infoCarryMoneyMapper.deleteInfoCarryMoneyByIds(ids);
    }

    /**
     * 删除提现信息
     * 
     * @param id 提现主键
     * @return 结果
     */
    @Override
    public int deleteInfoCarryMoneyById(Long id)
    {
        return infoCarryMoneyMapper.deleteInfoCarryMoneyById(id);
    }
}
